package cn.itcast.domain.system;

public class Dept {  //北京事业部

    private String id;

    private String deptName;


    private Dept parent; // 父部门实体，如果我只是维护了parent_id ,那么我就只能知道该部门的父id而已，不能知道他的父目标的名字。
    //更加符合java中面向对象的设计 , 一般在java中如果一个表的外键列，我们都是会使用实体类去表示。

    private String state;
    private String companyId;
    private String companyName;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Dept getParent() {
        return parent;
    }

    public void setParent(Dept parent) {
        this.parent = parent;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }
}
